home *** CD-ROM | disk | FTP | other *** search
/ World Traveler - World Vista Atlas / World Traveler - World Vista Atlas.iso / cserve / scripts.lib / FALNET.SCR < prev    next >
Text File  |  1994-09-21  |  1KB  |  53 lines

  1. !
  2. !  Copyright (c) 1994
  3. !  by CompuServe Incorporated, Columbus, Ohio
  4. !
  5. !  The information in this software is subject to change without
  6. !  notice and should not be construed as a commitment by CompuServe.
  7. !
  8. !  FALNET:
  9. !    Connect to FALNET
  10. !    Success:  returns %Success
  11. !    Failure:  saves error msg in %FailureMsg and returns %Failure
  12. !
  13. !+V
  14. ! "3.5.1"
  15. !-V
  16.  
  17. FailStr = "FALNET not responding";
  18.  
  19. Start_FALNET:
  20.     show "Connecting to FALNET";
  21.     Tries = 5;
  22.     on cancel goto Return_Cancel;
  23.  
  24. Wait_FALNET:
  25.     if Tries = 0 goto FALNET_Failure;
  26.     Tries = Tries - 1;
  27.  
  28.     wait
  29.         %mdm_Failure    goto NO_Carrier,
  30.         "READY"        goto Send_FALNET_Host,
  31.         "User ID:"    goto Return_Success
  32.     until 80;
  33.  
  34.     send %CR & %CR & %CR;
  35.     goto Wait_FALNET;
  36.  
  37. Send_FALNET_Host:
  38.     send "C CIS" & %CR;
  39.     goto Wait_FALNET;
  40.  
  41. NO_Carrier:
  42.     FailStr = "Modem connection lost";
  43. FALNET_Failure:
  44.     define %FailureMsg = FailStr;
  45.     exit %Failure;
  46.  
  47. Return_Cancel:
  48.     exit %Cancel;
  49.  
  50. Return_Success:
  51.     send %CR;
  52.     exit %Success;
  53.